Change in openvpn[master]: Disable DCO if proxy is set via management
A message that is not in the archive (sent off-list or not yet received): gerrit.1710510194000.I16d6a9fefa317d7d4a195e786618328445bdbca8@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/543?usp=email
to review the following change.
Change subject: Disable DCO if proxy is set via management
......................................................................
Disable DCO if proxy is set via management
Commit
45a1cb2a ("Disable DCO if proxy is set via management")
attempted to disable DCO when proxy is set via management interface. However, at least on Windows this doesn't work, since:
- setting tuntap_options->disable_dco to true is not enough to disable DCO
- at this point it is a bit too late, since we've already done DCO-specific
adjustments
Since proxy could be set via management only if --management-query-proxy is specified, the better way would be to add a check to dco_check_startup_option().
Github: fixes OpenVPN/openvpn#522
---
M src/openvpn/dco.c
M src/openvpn/init.c
2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/543/1
src/openvpn/dco.c +6 -0
@@ -387,6 +387,12 @@return false; } +if (o->management_flags &MF_QUERY_PROXY ) + { +msg (msglevel,"Note: --management-query-proxy disables data channel offload." ); +return false; + } +/* now that all options have been confirmed to be supported, check * if DCO is truly available on the system */
src/openvpn/init.c +0 -6
@@ -221,12 +221,6 @@ }else if (p[2 ] && p[3 ]) { -if (dco_enabled (&c->options)) - { -msg (M_INFO ,"Proxy set via management, disabling Data Channel Offload." ); - c->options.tuntap_options.disable_dco = true; - } -if (streq (p[1 ],"HTTP" )) {struct http_proxy_options *ho;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: plaisthos, stipa.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/543?usp=email )
Change subject: Disable DCO if proxy is set via management
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Fri, 15 Mar 2024 14:41:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 Disable DCO if proxy is set via management
In reply to a message not in the archiveFrom: Lev Stipakov <[email protected]...>
Commit
45a1cb2a ("Disable DCO if proxy is set via management")
attempted to disable DCO when proxy is set via management interface. However, at least on Windows this doesn't work, since:
- setting tuntap_options->disable_dco to true is not enough to disable DCO
- at this point it is a bit too late, since we've already done DCO-specific
adjustments
Since proxy could be set via management only if --management-query-proxy is specified, the better way would be to add a check to dco_check_startup_option().
Github: fixes OpenVPN/openvpn#522
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/543
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>
src/openvpn/dco.c +6 -0
@@ -387,6 +387,12 @@return false; } +if (o->management_flags &MF_QUERY_PROXY ) + { +msg (msglevel,"Note: --management-query-proxy disables data channel offload." ); +return false; + } +/* now that all options have been confirmed to be supported, check * if DCO is truly available on the system */
src/openvpn/init.c +0 -6
@@ -221,12 +221,6 @@ }else if (p[2 ] && p[3 ]) { -if (dco_enabled (&c->options)) - { -msg (M_INFO ,"Proxy set via management, disabling Data Channel Offload." ); - c->options.tuntap_options.disable_dco = true; - } -if (streq (p[1 ],"HTTP" )) {struct http_proxy_options *ho;
[Openvpn-devel] [PATCH applied] Re: Disable DCO if proxy is set via management
Straight and to the point :-)
Minimally tested with a linux t_client setup that uses DCO and proxy (but no --managment-query-proxy).
Your patch has been applied to the master and release/2.6 branch (bugfix).
commit fd6b8395f6cee8a61111c28f335ec25ed6db11f7 (master) commit 462fed53c7a5f21c07dafa4910765efe56d7402d (release/2.6)
Author: Lev Stipakov Date: Mon Mar 18 19:17:44 2024 +0100
Disable DCO if proxy is set via management
Signed-off-by: Lev Stipakov <[email protected]...>
Acked-by: Frank Lichtenheld <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28415.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by stipa. ( http://gerrit.openvpn.net/c/openvpn/+/543?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld
Change subject: Disable DCO if proxy is set via management
......................................................................
Disable DCO if proxy is set via management
Commit
45a1cb2a ("Disable DCO if proxy is set via management")
attempted to disable DCO when proxy is set via management interface. However, at least on Windows this doesn't work, since:
- setting tuntap_options->disable_dco to true is not enough to disable DCO
- at this point it is a bit too late, since we've already done DCO-specific adjustments
Since proxy can be set via management only if --management-query-proxy is specified, the better way is to add a check to dco_check_startup_option().
Github: fixes OpenVPN/openvpn#522
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28415.html
---
M src/openvpn/dco.c
M src/openvpn/init.c
2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/543/2
src/openvpn/dco.c +6 -0
@@ -387,6 +387,12 @@return false; } +if (o->management_flags &MF_QUERY_PROXY ) + { +msg (msglevel,"Note: --management-query-proxy disables data channel offload." ); +return false; + } +/* now that all options have been confirmed to be supported, check * if DCO is truly available on the system */
src/openvpn/init.c +0 -6
@@ -221,12 +221,6 @@ }else if (p[2 ] && p[3 ]) { -if (dco_enabled (&c->options)) - { -msg (M_INFO ,"Proxy set via management, disabling Data Channel Offload." ); - c->options.tuntap_options.disable_dco = true; - } -if (streq (p[1 ],"HTTP" )) {struct http_proxy_options *ho;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/543?usp=email )
Change subject: Disable DCO if proxy is set via management
......................................................................
Disable DCO if proxy is set via management
Commit
45a1cb2a ("Disable DCO if proxy is set via management")
attempted to disable DCO when proxy is set via management interface. However, at least on Windows this doesn't work, since:
- setting tuntap_options->disable_dco to true is not enough to disable DCO
- at this point it is a bit too late, since we've already done DCO-specific adjustments
Since proxy can be set via management only if --management-query-proxy is specified, the better way is to add a check to dco_check_startup_option().
Github: fixes OpenVPN/openvpn#522
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28415.html
---
M src/openvpn/dco.c
M src/openvpn/init.c
2 files changed, 6 insertions(+), 6 deletions(-)
src/openvpn/dco.c +6 -0
@@ -387,6 +387,12 @@return false; } +if (o->management_flags &MF_QUERY_PROXY ) + { +msg (msglevel,"Note: --management-query-proxy disables data channel offload." ); +return false; + } +/* now that all options have been confirmed to be supported, check * if DCO is truly available on the system */
src/openvpn/init.c +0 -6
@@ -221,12 +221,6 @@ }else if (p[2 ] && p[3 ]) { -if (dco_enabled (&c->options)) - { -msg (M_INFO ,"Proxy set via management, disabling Data Channel Offload." ); - c->options.tuntap_options.disable_dco = true; - } -if (streq (p[1 ],"HTTP" )) {struct http_proxy_options *ho;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16d6a9fefa317d7d4a195e786618328445bdbca8
Gerrit-Change-Number: 543
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged